package com.gshrms.org.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gshrms.system.domain.dto.SysUserJoinDto;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gshrms.common.annotation.Excel;
import com.gshrms.common.core.domain.CommonEntity;

import java.util.Date;

/**
 * 职等对象 org_post_grade
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public class OrgPostGrade extends CommonEntity
{
    private static final long serialVersionUID = 1L;

    /** 职等ID */
    @TableId(type = IdType.AUTO)
    private Long postGradeId;

    /** 职等名称 */
    @Excel(name = "职等名称")
    private String postGradeName;

    /** 等级 */
    @Excel(name = "等级")
    private Long postGradeNum;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createId;
    private SysUserJoinDto createInfo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setPostGradeId(Long postGradeId)
    {
        this.postGradeId = postGradeId;
    }

    public Long getPostGradeId()
    {
        return postGradeId;
    }
    public void setPostGradeName(String postGradeName)
    {
        this.postGradeName = postGradeName;
    }

    public String getPostGradeName() 
    {
        return postGradeName;
    }
    public void setPostGradeNum(Long postGradeNum) 
    {
        this.postGradeNum = postGradeNum;
    }

    public Long getPostGradeNum() 
    {
        return postGradeNum;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    public SysUserJoinDto getCreateInfo() {
        return createInfo;
    }

    public void setCreateInfo(SysUserJoinDto createInfo) {
        this.createInfo = createInfo;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postGradeId", getPostGradeId())
            .append("postGradeName", getPostGradeName())
            .append("postGradeNum", getPostGradeNum())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
